<script>
export default { name: 'Demo' };
</script>

<script setup>
import Banner from '@/components/Banner.vue'
</script>

<template>
  <div class="demo-wrap">
    <div class="container">
      <Banner>
        <template v-slot:bg>
          <img class="banner-bg" src="@/assets/img/demo/banner_bg.png" />
        </template>
      </Banner>

      <div class="content-item">
        <div class="content-item-title">产品demo体验</div>
        <div class="demo-box">
          <div class="demo-t">
            <div class="demo-t-tit demo01-tit">运维联盟</div>
            <div class="demo-t-desc">运维联盟提供来自多个优秀厂商运维平台产品demo，可以体验业界最先进的运维技术和运维最佳实践经验，它将为您的企业提供全面的运维解决方案，助力您的业务顺利运行。</div>
            <RouterLink class="demo-t-btn" to="/about">Demo体验</RouterLink>
          </div>
          <div class="demo-t">
            <div class="demo-t-tit demo02-tit">SysOM平台</div>
            <div class="demo-t-desc">SysOM全称System Operation&Maintenance，是由龙蜥社区系统运维SIG和阿里云云监控产品、服务器迁移中心SMC共同打造的一站式操作系统运维平台，融入了SIG成员的成功商用运维实践经验，能够帮助用户在统一平台上实现主机管理、操作系统迁移、宕机分析、系统监控、系统应用观测、异常诊断、日志审计、安全管控等复杂操作系统管理。</div>
            <a class="demo-t-btn" href="http://sysom.openanolis.cn" target="_blank">Demo体验</a>
          </div>
        </div>
      </div>

      <!-- <RouterLink class="entrance-btn" to="/demo">进入产品demo</RouterLink> -->
    </div>
  </div>
</template>

<style lang="scss" scoped>
.demo-wrap {
  background: #F9F9F9;

  .container {
    margin: 0 auto;
    padding: 20px 0;
    width: 1180px;
  }

  .content-item {
    margin-top: 38px;

    .content-item-title {
      padding-left: 12px;
      font-family: PingFangSC-Regular;
      font-size: 24px;
      line-height: 36px;
      color: #333333;
      letter-spacing: 0;
      font-weight: 400;
      position: relative;
      &::before {
        content: '';
        width: 4px;
        height: 24px;
        background: #0F75E8;
        transform: translate(0, -50%);
        position: absolute;
        left: 0;
        top: 50%;
      }
    }
  }

  .demo-box {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
  }

  .demo-t {
    width: calc(50% - 20px);
    height: 404px;
    background: url('@/assets/img/demo/wave_point.png') right top no-repeat;
    background-size: 570px 404px;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 6px 0px rgba(221,221,221,0.5);
    border-radius: 10px;
    position: relative;

    .demo-t-tit {
      padding: 30px;
      background: 30px center no-repeat;
      background-size: auto 40px;
      font-size: 30px;
      font-family: Menlo, PingFangSC-Regular;
      color: transparent;
      letter-spacing: 0;
      font-weight: 400;
      &.demo01-tit {
        background-image: url('@/assets/img/demo/demo01.png');
      }
      &.demo02-tit {
        background-image: url('@/assets/img/demo/demo02.png');
      }
    }

    .demo-t-desc {
      padding: 30px;
      border-top: 1px solid #e2e2e2;
      font-family: PingFangSC-Regular;
      font-size: 18px;
      color: #666666;
      letter-spacing: 0;
      text-align: justify;
      line-height: 32px;
      font-weight: 400;
    }

    .demo-t-btn {
      display: inline-flex;
      align-items: center;
      font-family: PingFangSC-Medium;
      font-size: 20px;
      line-height: 28px;
      color: #0F75E8;
      letter-spacing: 0;
      font-weight: 500;
      position: absolute;
      bottom: 30px;
      left: 30px;

      &::after {
        content: '→';
        margin-left: 6px;
        font-size: 24px;
      }
    }
  }

  .entrance-btn {
    margin: 50px auto 40px;
    display: block;
    width: 232px;
    height: 50px;
    background-image: linear-gradient(-78deg, #7EC939 0%, #4DA154 100%);
    border-radius: 25px;
    font-family: PingFangSC-Regular;
    text-align: center;
    font-size: 26px;
    color: #FFFFFF;
    line-height: 50px;
    letter-spacing: 0;
    font-weight: 400;
    transition: all 0.3s;
    cursor: pointer;
    &:hover {
      // box-shadow: 0 0 8px #fff;
    }
  }
}
</style>
